function e(e, t) {
    if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
}

Object.defineProperty(exports, "__esModule", {
    value: !0
});

var t = function() {
    function e(e, t) {
        for (var n = 0; n < t.length; n++) {
            var r = t[n];
            r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), 
            Object.defineProperty(e, r.key, r);
        }
    }
    return function(t, n, r) {
        return n && e(t.prototype, n), r && e(t, r), t;
    };
}(), n = require("../common/constants.js"), r = function() {
    function r(t) {
        e(this, r), Object.assign(this, n.DEFAULT_PLAYER_CONFIG, {
            userID: "",
            streamType: "",
            streamID: "",
            isVisible: !0,
            hasVideo: !1,
            hasAudio: !1,
            volume: 30,
            playerContext: void 0
        }, t);
    }
    return t(r, [ {
        key: "setProperty",
        value: function(e) {
            Object.assign(this, e);
        }
    }, {
        key: "reset",
        value: function() {
            this.playerContext && (this.playerContext.stop(), this.playerContext = void 0), 
            Object.assign(this, n.DEFAULT_PLAYER_CONFIG, {
                userID: "",
                streamType: "",
                streamID: "",
                isVisible: !0,
                hasVideo: !1,
                hasAudio: !1,
                volume: 0,
                playerContext: void 0
            });
        }
    } ]), r;
}();

exports.default = r;